﻿<Window x:Class="LayeredArchitectureSample.ClientBrowser.ErrorView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="{Binding Path=Title}" Height="400" Width="500" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
    <StackPanel>
        <ScrollViewer MaxWidth="500" Height="300" x:Name="ErrorMessageScrollViewer">
            <TextBox TextWrapping="Wrap" TabIndex="0" Text="{Binding Path=ErrorMessage, Mode=OneTime}" MaxWidth="500" IsEnabled="True" IsReadOnly="True"></TextBox>
        </ScrollViewer>
        <Expander TabIndex="1" x:Name="DetailExpander" Expanded="DetailExpanderHasBeenExpanded" Collapsed="DetailExpanderHasBeenCollapsed" Header="Click to see technical details" IsEnabled="{Binding Path=GotDetails, Mode=OneTime}">
            <ScrollViewer MaxWidth="500" MaxHeight="150" Height="150">
                <TextBox TextWrapping="Wrap" Text="{Binding Path=TechnicalDetails, Mode=OneTime}" MaxWidth="500" IsEnabled="True" IsReadOnly="True"></TextBox>
            </ScrollViewer>
        </Expander>
        <Button TabIndex="2" Content="OK" Click="OkButtonClick" Width="80" Margin="0,10,0,0"></Button>
    </StackPanel>
</Window>